home *** CD-ROM | disk | FTP | other *** search
/ This Disc Bytes! / Power Computing - The Disc 2 - This Disc Bytes.ISO / mac / CodeWarrior 7 Lite for 68K / MacOS Support / Headers / Universal Headers / FileTransferTools.h < prev    next >
Text File  |  1995-07-06  |  3KB  |  136 lines

  1. /*
  2.      File:        FileTransferTools.h
  3.  
  4.      Contains:    CommToolbox File Transfer Tools Interfaces.
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Package:    Universal Interfaces 2.1 in “MPW Latest” on ETO #18
  8.  
  9.      Copyright:    © 1984-1995 by Apple Computer, Inc.
  10.                  All rights reserved.
  11.  
  12.      Bugs?:        If you find a problem with this file, use the Apple Bug Reporter
  13.                  stack.  Include the file and version information (from above)
  14.                  in the problem description and send to:
  15.                      Internet:    apple.bugs@applelink.apple.com
  16.                      AppleLink:    APPLE.BUGS
  17.  
  18. */
  19.  
  20. #ifndef __FILETRANSFERTOOLS__
  21. #define __FILETRANSFERTOOLS__
  22.  
  23.  
  24. #ifndef __DIALOGS__
  25. #include <Dialogs.h>
  26. #endif
  27. /*    #include <Errors.h>                                            */
  28. /*        #include <ConditionalMacros.h>                            */
  29. /*    #include <Memory.h>                                            */
  30. /*        #include <Types.h>                                        */
  31. /*        #include <MixedMode.h>                                    */
  32. /*    #include <Menus.h>                                            */
  33. /*        #include <Quickdraw.h>                                    */
  34. /*            #include <QuickdrawText.h>                            */
  35. /*    #include <Controls.h>                                        */
  36. /*    #include <Windows.h>                                        */
  37. /*        #include <Events.h>                                        */
  38. /*            #include <OSUtils.h>                                */
  39. /*    #include <TextEdit.h>                                        */
  40.  
  41. #ifndef __FILETRANSFERS__
  42. #include <FileTransfers.h>
  43. #endif
  44. /*    #include <CTBUtilities.h>                                    */
  45. /*        #include <StandardFile.h>                                */
  46. /*            #include <Files.h>                                    */
  47. /*                #include <Finder.h>                                */
  48. /*        #include <AppleTalk.h>                                    */
  49. /*    #include <Connections.h>                                    */
  50. /*    #include <Terminals.h>                                        */
  51.  
  52. #ifdef __cplusplus
  53. extern "C" {
  54. #endif
  55.  
  56. #if PRAGMA_ALIGN_SUPPORTED
  57. #pragma options align=mac68k
  58. #endif
  59.  
  60. #if PRAGMA_IMPORT_SUPPORTED
  61. #pragma import on
  62. #endif
  63.  
  64.  
  65. enum {
  66. /* DEFs */
  67.     fdefType                    = 'fdef',
  68.     fsetType                    = 'fset',
  69.     fvalType                    = 'fval',
  70.     flocType                    = 'floc',
  71.     fscrType                    = 'fscr',
  72.     fbndType                    = 'fbnd',
  73.     fverType                    = 'vers'
  74. };
  75.  
  76. enum {
  77. /* control */
  78.     ftInitMsg                    = 0,
  79.     ftDisposeMsg                = 1,
  80.     ftSuspendMsg                = 2,
  81.     ftResumeMsg                    = 3,
  82.     ftMenuMsg                    = 4,
  83.     ftEventMsg                    = 5,
  84.     ftActivateMsg                = 6,
  85.     ftDeactivateMsg                = 7,
  86.     ftGetErrorStringMsg            = 8,
  87.     ftAbortMsg                    = 52,
  88.     ftStartMsg                    = 100,
  89.     ftExecMsg                    = 102,
  90.     ftSendMsg                    = 103,
  91.     ftReceiveMsg                = 104,
  92. /* setup */
  93.     ftSpreflightMsg                = 0,
  94.     ftSsetupMsg                    = 1,
  95.     ftSitemMsg                    = 2,
  96.     ftSfilterMsg                = 3,
  97.     ftScleanupMsg                = 4,
  98. /* validate */
  99.     ftValidateMsg                = 0
  100. };
  101.  
  102. enum {
  103.     ftDefaultMsg                = 1,
  104. /* scripting */
  105.     ftMgetMsg                    = 0,
  106.     ftMsetMsg                    = 1,
  107. /* localization */
  108.     ftL2English                    = 0,
  109.     ftL2Intl                    = 1
  110. };
  111.  
  112. struct FTSetupStruct {
  113.     DialogPtr                        theDialog;                    /* the dialog form the application */
  114.     short                            count;                        /* first appended item */
  115.     Ptr                                theConfig;                    /* the config record to setup */
  116.     short                            procID;                        /* procID of the tool */
  117. };
  118. typedef struct FTSetupStruct FTSetupStruct;
  119.  
  120. typedef FTSetupStruct *FTSetupPtr;
  121.  
  122.  
  123. #if PRAGMA_IMPORT_SUPPORTED
  124. #pragma import off
  125. #endif
  126.  
  127. #if PRAGMA_ALIGN_SUPPORTED
  128. #pragma options align=reset
  129. #endif
  130.  
  131. #ifdef __cplusplus
  132. }
  133. #endif
  134.  
  135. #endif /* __FILETRANSFERTOOLS__ */
  136.